<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${!empty resume.resume.summary}">
    <div class="summary_info">
        <span>${resume.resume.summary}</span>
        <div class="button_edit">
            <button type="button" id="button_summary_edit">编辑</button>
        </div>
        <%--    <div class="button_del">--%>
        <%--        <button type="button" id="button_summary_del">删除</button>--%>
        <%--    </div>--%>
    </div>
</c:if>
<c:if test="${empty resume.resume.summary}">
    <div class="summary_info">
        <span>理解能力强</span>
        <div class="button_edit">
            <button type="button" id="button_summary_edit1">编辑</button>
        </div>
            <%--    <div class="button_del">--%>
            <%--        <button type="button" id="button_summary_del">删除</button>--%>
            <%--    </div>--%>
    </div>
</c:if>
<script>
    $("#button_summary_edit").click(function () {
        let resumeId = $("#resumeId").val();
        $("#sum_edit").load("/hire/resume/summary_edit", {id: resumeId});
        $("#sum_info").hide();
        $("#sum_edit").show();
    })
    $("#button_summary_edit1").click(function () {
        let resumeId = $("#resumeId").val();
        $("#sum_edit").load("/hire/resume/summary_edit", {id: resumeId});
        $("#sum_info").hide();
        $("#sum_edit").show();
    })
    // $("#button_summary_del").click(function () {
    //     let resumeId = $("#resumeId").val();
    //     $("#sum_edit").load("/hire/resume/summary_info",{id:resumeId});
    //     $("#sum_info").remove();
    //     $("#sum_edit").hide();
    // })
</script>